public class AccountHandler {

    public static Account insertNewAccount(String name){
        Account account = new Account(Name=name);
        try {
            insert account;
        }catch(DmlException e) {
         	System.debug('保存账户失败:' + e);  
            return null;
        }
        return account;
    }
    
}